#pragma once
#ifndef _INPUT_H_
#define _INPUT_H_

#include "../../../third_party/EasyX/include/easyx.h"
#include"../../Logic/Player.h"
class Input {
public:
    Input(){}
    virtual ~Input() = default;
    virtual bool init(Input* input = nullptr) = 0;
    virtual bool isKeyPressed(ExMessage* msg,Player*& player) = 0;
    virtual bool isMousePressed(ExMessage* msg = nullptr) = 0;//1=左键/2=右键
    virtual std::pair<int,int>getMousePos() = 0;
    virtual void handleEvents(Player*& player) = 0;
};

#endif